package com.dyoud.api.user.dto;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 修改用户手机号
 * 
 * @author Jonathan
 * @date 2018/03/01
 *
 */
public class UpdatePhoneDto {
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    @NotBlank(message = "用户手机号不能为空")
    private String phone;
    @NotBlank(message = "短信验证码不能为空")
    private String code;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

}
